package com.pipayshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pipayshop.entity.HotelShopInfo;
import com.pipayshop.entity.dto.HotelShopInfoListByConditionDTO;
import com.pipayshop.entity.vo.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 实体店酒店的信息 服务类
 * </p>
 *
 * @author nws
 * @since 2023-07-25
 */
public interface HotelShopInfoService extends IService<HotelShopInfo> {


    /**
     * 根据条件查询酒店信息
     * @param livePageVO
     * @return
     */
    PageDataVO getHotelInfoByCondition(LivePageVO livePageVO);

    /**
     * 根据区域的前缀查询酒店数量
     * @param regionIds
     * @return
     */
    Map<String, Long> getHotelCountsByRegionIds(List<String> regionIds);


    /**
     * 根据二级分类-获取所有实体店列表
     */
    PageDataVO getShopInfoListByCondition(HotelShopInfoListByConditionDTO hotelShopInfoListByConditionDTO);
    /**
     * 根据实体店id查询实体店信息
     */
    ShopInfoVO getShopInfoById(String shopId);

    HotelShopInfoVO getShopInfoByUid(String uid);

    boolean updateHotel(ShopInfoVO shopInfoVO);

    List<RoomListVO> getShopInfoByShopId(String shopId);

    boolean takeOffRoom(String roomId,String hotelId);
}
